import grails.util.Environment

eventPackagePluginStart = {
	Ant.copy(todir: "${projectWorkDir}/plugin-info/html-template", overwrite: true) {
		fileset(dir: "${basedir}/html-template")
	}
	Ant.copy(todir: "${projectWorkDir}/plugin-info/flex-src/conf", overwrite: true) {		
		fileset(dir: "${basedir}/flex-src/conf")
	}
	Ant.copy(todir: "${projectWorkDir}/plugin-info/web-app/WEB-INF/flex", overwrite: true) {
		fileset(dir: "${basedir}/web-app/WEB-INF/flex")
	}
	Ant.copy(todir: "${projectWorkDir}/plugin-info", overwrite: true) {
		fileset(dir:"${basedir}", includes:'.actionScriptProperties')
		fileset(dir:"${basedir}", includes:'.flexProperties')
	}
	
	
	Ant.copy(todir: "${projectWorkDir}/plugin-info/simple-app/flex-src", overwrite: true) {
			fileset(dir: "${basedir}/flex-src", excludes:'conf/flex-config.xml')
	}	
	Ant.copy(todir: "${projectWorkDir}/plugin-info/simple-app/flex-lib", overwrite: true) {
		fileset(dir: "${basedir}/flex-lib")
	}
} 